package cn.HuanG.base.mapper;

import cn.HuanG.base.query.BaseQuery;


import java.util.List;

public interface BaseMapper<T> {
    void save(T t);
    void update(T t);
    void delete(Long id);
    T queryById(Long id);
    List<T> queryAll();
    /**
     * 用于高级查询，计算总条数
     */
    Long count(BaseQuery baseQuery);
    List<T> queryDate(BaseQuery baseQuery);
}
